package dao;
import java.util.ArrayList;
import org.apache.ibatis.annotations.Param;
import po.Record;
public interface RecordDao
{
	public int addRecord(Record record);
	public ArrayList<Record> findAllRecordByUserId(int userId);
	public Record findRecordByRecordId(long recordId);
	public int updateRecord(Record record);
	public int deleteRecord(long recordId);
	public ArrayList<Record> searchRecordsFromSelf(@Param("searchWord") String searchWord,@Param("userId") int userId);
	public ArrayList<Record> searchRecordsFromCommunity(String searchWord);
	public ArrayList<String> findRecordTitlesByUserId(int userId);
	public ArrayList<String> findRecordTitlesByIsOpen(String isOpen);
	public ArrayList<Record> findAllUnauditRecords();
	public ArrayList<Record> findAllRecord();
}